//package com.zmn.plat.dubbo.impl.price;
//
//import com.zmn.common.dto2.ResponseDTO;
//import com.zmn.manager.common.database.annotation.ReadOnlyConnection;
//import com.zmn.plat.business.interfaces.price.BkProductPriceBService;
//import com.zmn.plat.common.dto.price.ProductPriceDRO;
//import com.zmn.plat.common.dto.price.ProductPriceQuery;
//import com.zmn.plat.common.exception.PlatException;
//import com.zmn.plat.dubbo.interfaces.price.BkProductPriceRemoteService;
//import com.zmn.plat.dubbo.utils.DubboConsts;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.dubbo.config.annotation.Service;
//
//import javax.annotation.Resource;
//import java.util.List;
//
///**
// * 描述: 产品销售价实现类
// *
// * @author guoqiao
// * @since 2021/8/27 15:32
// */
//@Service(version = DubboConsts.INTERFACE_VERSION, validation = "true")
//@Slf4j
//public class BkProductPriceRemoteServiceImpl implements BkProductPriceRemoteService {
//
//    @Resource
//    BkProductPriceBService bkProductPriceBService;
//
//    @Override
//    @ReadOnlyConnection
//    public ResponseDTO<List<ProductPriceDRO>> listProductPriceByQuery(ProductPriceQuery query) {
//        log.info("BkProductPriceRemoteServiceImpl.listProductPriceByQuery：{}", query);
//        try {
//            List<ProductPriceDRO> dros = bkProductPriceBService.listProductPriceByQuery(query);
//            return ResponseDTO.success(dros);
//        } catch (PlatException e) {
//            return ResponseDTO.fromErrorCodeTable(e.getErrorCode());
//        } catch (Exception e) {
//            log.error("listProductPriceByQuery查询失败,原因:{},入参query:{}", e.getMessage(),query, e);
//            return ResponseDTO.fail("查询失败，程序异常");
//        }
//    }
//}
